package org.leo.study.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SnowflakId配置参数
 * </p>
 *
 * @Package: org.leo.study.configuration
 * @ClassName: SnowflakeIdConfig
 * @author: Li.Junlin
 * @date: 2019.10.12 16:22
 */
@Data
@Component
@ConfigurationProperties(prefix = "common.configuration.snowflakeid")
public class SnowflakeIdConfig {
    /**
     * 数据中心
     */
    private Long datacenterId = 0L;

    /**
     * 机器标识
     */
    private Long machineId = 0L;
}
